package com.atguigu.product.products.vo.respVo;

import com.atguigu.product.products.entity.PmsAttrEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CatelogwithattrRespVo {
    /**
     * 分组id
     */
    @TableId
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long attrGroupId;
    /**
     * 组名
     */
    private String attrGroupName;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 描述
     */
    private String descript;
    /**
     * 组图标
     */
    private String icon;
    /**
     * 所属分类id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long catelogId;

    /**
     * 属性分组信息
     */
     private List<PmsAttrEntity> attrs;
}
